<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>055-函数-定义.html</title>
</head>
<body>
	
</body>
<script>
	// function sayHi(){
	// 	console.log("hi");
	// }
	

	//变量声明函数声明
	


	
	function sayHi(){
		console.log("hi");
	}
	// sayHello();
	// console.log(typeof sayHello)
	var sayHello =function(){
		console.log("sayHello 123");
	}

	// var sayGood =sayzzzz;
	// console.log(typeof sayzzzz);//function
	// console.log(typeof sayGood);//function
	// sayzzzz();
	// sayGood();
	
	function fn1(){
		a = 2;
		console.log("fn1 a:::",a);
	}
	fn1();
	console.log(window);
	console.log(a);
	
</script>
</html>